package com.project.aaos.pojo;

import java.util.Objects;

public class SysHeader {
    private String timestamp;
    private String appId;
    private String transcode;
    private String orgCode;

    public SysHeader() {
    }


    public SysHeader(String timestamp, String appId, String transcode, String orgCode) {
        this.timestamp = timestamp;
        this.appId = appId;
        this.transcode = transcode;
        this.orgCode = orgCode;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getTranscode() {
        return transcode;
    }

    public void setTranscode(String transcode) {
        this.transcode = transcode;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysHeader sysHeader = (SysHeader) o;
        return Objects.equals(timestamp, sysHeader.timestamp) &&
                Objects.equals(appId, sysHeader.appId) &&
                Objects.equals(transcode, sysHeader.transcode) &&
                Objects.equals(orgCode, sysHeader.orgCode);
    }

    @Override
    public int hashCode() {

        return Objects.hash(timestamp, appId, transcode, orgCode);
    }
}
